class MyThread extends Thread {

    public void run() {
        while(true){
        System.out.println("hello MyThread");
        try{
        Thread.sleep(1000);
    }catch (InterruptedException e){
            throw new RuntimeException(e);
        }
        }
    }

}

    public class Java1110 {
    public static void main(String[] args) {
        MyThread a = new MyThread();
        a.start();

        while(true){
        System.out.println("hello world");
        try{
            Thread.sleep(1000);
    }catch (InterruptedException e){
            throw new RuntimeException(e);
        }
        }
    }

}
